
<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>添加产品</title>
        <link rel="stylesheet" type="text/css" href="../css/content.css">
        <link rel="stylesheet" type="text/css" href="../css/contentblue.css">
        <link rel="stylesheet" type="text/css" href="../css/product.css">
        <link rel="stylesheet" type="text/css" href="../css/set_up.css">
        <link rel="stylesheet" type="text/css" href="../css/shop/product_add.css">
        <script type="text/javascript" src="../js/jquery-2.1.0.min.js"></script>
        <script type="text/javascript" src="../js/cmf.js"></script>
        <script type="text/javascript" src="../js/product/add_product.js"></script>
        <script type="text/javascript" src="../js/Ueditor/ueditor.config.js"></script>
        <script type="text/javascript" src="../js/Ueditor/ueditor.all.js"></script>
    </head>

    <body>
        <!--内容框架-->
        <div class="WSY_content">

            <!--列表内容大框-->
            <div class="WSY_columnbox">

                <!--列表头部切换开始-->
                <div class="WSY_column_header">
                    <div class="WSY_columnnav">
                        <a href="{:url('index')}">产品列表</a>
                        <a href="{:url('add')}" class="white1">添加产品</a>
                    </div>
                </div><!--列表头部切换结束-->

                <!--关注用户开始-->
                <form id="frm_product" class="r_con_form" method="post" action="{:url('add')}" enctype="multipart/form-data">
                    <div class="WSY_data">
                        <dl class="WSY_bulkbox w90px">
                            <dt>产品名称：</dt>
                            <dd><input type="text" name="name" id="name" value="" onkeyup="//checkname(this);"></dd>
                        </dl>
                        <dl class="WSY_bulkdl w90px">
                            <div class="form_box">
                                <label class="label-control">产品分类：</label>
                                <div id='f-box'>
                                </div>
                            </div>		
                            <div class="msg_box">
                                <div class="slide_btn" style="display:none;">收起选项</div>
                                <div class="slide_btn_grey">展开选项</div>
                                <div class="msg" style="display:none;">
                                    <div class="option_box">
                                        <p>一级</p>	
                                        <div class="option">
                                            <ul class="level_1" >
                                                <li   typeid="169" level="1" type_name="行车记录仪">
                                                    <span class="text" >行车记录仪</span>
                                                    <i class="add-icon">
                                                        <span data-type_id="169" class="add-list" type_name="行车记录仪" >+</span>
                                                    </i>
                                                </li>	
                                                <li   typeid="173" level="1" type_name="内饰装饰">
                                                    <span class="text" >内饰装饰</span>
                                                    <i class="add-icon">
                                                        <span data-type_id="173" class="add-list" type_name="内饰装饰" >+</span>
                                                    </i>
                                                </li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </dl>
                        
                        <div class="WSY_bulkbox02">
                            <div class="WSY_bulkbox_top">
                                <div class="WSY_bulkboximgbox">
                                    <div class="WSY_bulkboximg" id="WSY_bulkboximg">
                                        <p>封面图片</p>
                                        <iframe src="iframe_images_defaultproduct.php?customer_id=BTdbbFo6&product_id=-1&default_imgurl=" height=200 width=1024 FRAMEBORDER=0 SCROLLING=no></iframe>
                                    </div>
                                    <input type=hidden name="default_imgurl" id="default_imgurl" value="" />
                                </div>
                            </div>
                        </div>
                        
                        <div class="WSY_bulkbox02">
                            <div class="WSY_bulkboximgbox">
                                <div class="WSY_bulkboximg" id="WSY_bulkboximg" style="height:260px">
                                    <p>产品图片</p>
                                    <dl style="margin:30px 0px 0px 0px">
                                        <iframe id="frmProImgs" src="iframe_images.php?customer_id=BTdbbFo6&product_id=-1&detail_template_type=1" height="400" width="1024" FRAMEBORDER=0 SCROLLING=no></iframe>
                                    </dl>
                                </div>
                                <input type=hidden name="imgids" id="imgids" value="" />
                                <div class="WSY_bulkboximg" style="height:260px;display:none" >
                                    <p>简短介绍</p>
                                    <dl class="WSY_bulkdl">
                                        <span style="color:red;font-size: 14px;">（建议控制在30个字符以内）</span>
                                        <dd><textarea name="introduce" class="briefdesc"></textarea></dd>
                                    </dl>
                                </div>
                            </div>
                        </div>

                        <dl class="WSY_bulkdl w90px">
                            <dt style="margin-top:20px;">产品属性：</dt>
                            <ul class="WSY_bulkul wdw">

                                <!--产品属性 end-->
                                <input type=hidden name="pidpnames" id="pidpnames" value="" />
                                <input type=hidden name="propertyids" id="propertyids" value=""/>		
                            </ul>
                        </dl>
                        
                        <dl class="WSY_bulkdl WSY_bulkdl03 w90px" style="display:none">
                            <dt>产品批发属性：</dt>
                            <dd class="dd_margin">
                                <select name="" id="wholesale" >
                                    <option value="-1">请选择批发属性</option>
                                </select>
                            </dd>
                            <input type="hidden" name="wholesale_id" value="-1" id="wholesale_id">
                        </dl>


                        <dl class="WSY_bulkdl WSY_bulkdldt w90px" style="display:none;">
                            <dt style="width:90px;">"现价"自定义:</dt>
                            <dd style="line-height:24px"><input type="text" name="define_price_tag" id="now_money" value="现价" class="form_input num_check" size="5" maxlength="10">（默认 "现价"）</dd>
                        </dl>
                        
                        <dl class="WSY_bulkdl w90px">
                            <dt>产品价格：</dt>
                            <div class="WSY_bulkul01box" id="div_proprices">
                                <div class="WSY_bulkul01">
                                    <span class="WSY_red">现价和成本一致,则不返佣</span><br>
                                    <li class='orgin_price'>原价￥：<input type="text" name="orgin_price" value="0" class="form_input num_check" size="5" maxlength="10"></li>
                                    <li>现价:￥<input type="text" name="now_price" value="0" class="form_input num_check" size="5" maxlength="10"></li>
                                    <li>成本:￥<input type="text" name="for_price" value="0"></li>
                                    <li class='base_price'>供货价:￥<input type='text' name='cost_price' value='55' class='form_input num_check calc_bp' size='5' maxlength='10'></li>
                                    <li>单位：<input type="text" name="unit" value="" class="form_input" size="5" maxlength="10"></li>
                                    <li>重量：<input type="text" name="weight" value="0" class="form_input num_check" size="5" maxlength="10" >KG</li>
                                    <li>库存：<input type="text" name="storenum" value="1" class="form_input num_check" size="5" maxlength="10"></li>
                                    <li class='neet_score'> 所需积分: <input type='text' name='need_score' value='99' class='form_input num_check' size='5' maxlength='10'> </li>
                                </div>
                                <div class="WSY_bulkul02box">
                                    <div class="WSY_bulkul02">

                                    </div>
                                </div>
                            </div>
                        </dl>

                        <dl class="WSY_bulkdl WSY_bulkdl03 w90px">
                            <dt>运费模板：</dt>
                            <dd class="dd_margin">
                                <select name="freight_id">
                                    <option value="-1" >无</option>
                                    <option value="15"  >X运费</option>
                                    <option value="16"  >aaaa</option>
                                </select>
                            </dd>
                            <dd><a href="javascript:alert('查看修改日志')"><img style="width:20px;" title="查看修改日志" src="../img/newshops/basicdesign/icon-log.png"/></a></dd>
                        </dl>

                        <dl class="WSY_bulkdl WSY_bulkdl03 w90px">
                            <dt>邮费计费方式：</dt>
                            <dd class="dd_margin"><input type="radio" name="express_type" id="express_type_1" value="1" ><label for="express_type_1">按件数</label></dd>
                            <dd class="dd_margin"><input type="radio" name="express_type" id="express_type_2" value="2" ><label for="express_type_2">按重量</label></dd>
                        </dl>

                        <dl class="WSY_bulkdl WSY_bulkdldt w90px">
                            <dt>真实销售量：</dt>
                            <dd style="line-height:20px">0</dd>
                        </dl>
                        <dl class="WSY_bulkdl WSY_bulkdldt w90px">
                            <dt>虚拟销售量：</dt>
                            <dd><input type="text" id="show_sell_count" name="show_sell_count" value="999"><i class="WSY_red">显示销量=虚拟销售量+真实销售量</i></dd>
                        </dl>
                        
                        <dl class="WSY_bulkdl WSY_bulkdl03 w90px" style="display:none">
                            <dt>产品分享图片：</dt>
                            <dd class="dd_margin"><input type="radio" id="define_share_image_flag_0" name="define_share_image_flag" value="0" checked >
                                <label for="define_share_image_flag_0">默认</label></dd>
                            <dd class="dd_margin"><input type="radio" id="define_share_image_flag_1" name="define_share_image_flag" value="1" >
                                <label for="define_share_image_flag_1">自定义</label></dd>
                            <!--上传文件代码开始-->
                            <div class="uploader white"  id="define_share_image_div" style='display:none'>
                                <input type="text" class="filename" readonly />
                                <input type="button" name="file" class="button" value="上传..."/>
                                <input type="file" size="30" name='new_define_share_image' id='new_define_share_image'/>
                                <input type='hidden' name='now_define_share_image' id='now_define_share_image' value=''>
                            </div>
                            <!--上传文件代码结束-->
                        </dl>

                        <dl class="WSY_bulkdl w90px">
                            <dt>产品标签：</dt>
                            <dd class="WSY_bulkdldd dd_margin"><input type="checkbox"  id="chk_isout" onclick="changeOut(this);"><label for="chk_isout">下架</label></dd>
                            <dd class="WSY_bulkdldd dd_margin"><input type="checkbox"  id="chk_isnew" onclick="changeNew(this);"><label for="chk_isnew">新品</label></dd>
                            <dd class="WSY_bulkdldd dd_margin" ><input type="checkbox"  id="chk_ishot" onclick="changeHot(this);"><label for="chk_ishot">热卖</label></dd>
                        </dl>
                        <dl class="WSY_bulkdl w90px" id="limit_num">
                            <dt style="width:115px;">（每天）限购数量：</dt>
                            <dd class="WSY_bulkdldd dd_margin">
                                <input class="weiz_input" type="text" name="limit_num" id="limit_num_val" onkeyup="num_check(this)" value="1" />
                            </dd>
                        </dl>
                        <dl class="WSY_bulkdl w90px" id="extend_money">
                            <dt style="width:115px;">首次推广奖励金额：</dt>
                            <dd class="WSY_bulkdldd dd_margin">
                                <input class="weiz_input" type="text" name="extend_money" id="extend_money_val" onkeyup="num_check1(this)" value="0" />
                            </dd>
                        </dl>

                        <dl class="WSY_bulkdl" id="is_tax" style="display:none; line-height:22px;">
                            <dt style="width:80px;">税率模板：</dt>
                            <dd class="dd_margin">
                                <select name="tax_id" id="tax_sel" onclick='change_tax();'>
                                    <option value="" >模板选择</option>
                                </select>
                            </dd>
                            <dt style="width:80px;display:none">税收标签：</dt>
                            <dd>
                                <select name="tax_type" id="" style="display:none">
                                    <!-- <option value="1" selected >普通产品</option> -->
                                    <option value="2"  >跨境零售</option>
                                    <option value="3"  >国内代发</option>
                                    <option value="4"  >海外集货</option>
                                    <option value="5"  >海外直邮</option>
                                </select>
                            </dd>
                            <dt style="width:80px">关税税率：</dt>
                            <dd><input type="text" value="0" name="tariff" id="tariff" style="width:80px;height:20px;padding-left:10px;border-radius:2px;margin-top:0;margin-right:5px;border:1px solid #ccc;">%</dd>
                            <dt style="width:80px">消费税税率：</dt>
                            <dd><input type="text" value="0" name="comsumption" id="comsumption" style="width:80px;height:20px;padding-left:10px;border-radius:2px;margin-top:0;margin-right:5px;border:1px solid #ccc;">%</dd>
                            <dt style="width:80px">增值税税率：</dt>
                            <dd><input type="text" value="0" name="addedvalue" id="addedvalue" style="width:80px;height:20px;padding-left:10px;border-radius:2px;margin-top:0;margin-right:5px;border:1px solid #ccc;">%</dd>
                            <dt style="width:80px">行邮税率：</dt>
                            <dd><input type="text" value="0" name="postal" id="postal" style="width:80px;height:20px;padding-left:10px;border-radius:2px;margin-top:0;margin-right:5px;border:1px solid #ccc;">%</dd>
                        </dl>

                        <div class="WSY_remind_main" style="display:none">
                            <dl class="WSY_bulkdl  w90px">
                                <dt>发票支持：</dt>	
                                <ul style="background-color: rgb(203, 210, 216);margin-top:2px;">
                                    <p style="color: rgb(127, 138, 151); margin: 0px 0px 0px 6px;">关</p>
                                    <li onclick="change_is_invoice(0)" class="WSY_bot" style="display: none; left: 30px;"></li>
                                    <span onclick="change_is_invoice(1)" class="WSY_bot2" style="display: block; left: 30px;"></span>
                                </ul>
                            </dl>
                            <input type="hidden" name="is_invoice" id="is_invoice" value="0">
                        </div>

                        <!-- 必填信息start -->

                        <dl class="WSY_bulkdl w90px">
                            <dt>排序位置：</dt>
                            <dd class="WSY_bulkdldd dd_margin">
                                <input class="weiz_input" id="weiz_sort" type="text" name="asort_value" value="0" />(按降序排序)
                            </dd>
                        </dl>
                        <dl class="WSY_bulkdl WSY_bulkdldt w90px">
                            <dt style="width:120px">产品分佣：</dt>
                            <dd>分佣比：<input type="text" id="reward1" name="reward1" value="0" style="display: inline-block;float: none">%</dd>
                            <dd style="display:none">二级分佣比：<input type="text" id="reward2" name="reward2" value="0" style="display: inline-block;float: none">%</dd>
                            <dd style="display:none">三级分佣比：<input type="text" id="reward3" name="reward3" value="0" style="display: inline-block;float: none">%</dd>
                        </dl>
                        <dl class="WSY_bulkdl WSY_bulkdldt w90px" style="display:none">
                            <dt style="width:120px">语音链接：</dt>
                            <dd><input type="text" style="width:200px" id="product_voice" name="product_voice" value="" placeholder="请输入链接"></dd>
                            <dd style="color:red">（必须填写MP3等格式外链接,方法一：本地文件->上传至QQ邮箱中转站->下载该文件->复制下载链接->从http截取至MP3->得到链接）</dd>
                        </dl>
                        <dl class="WSY_bulkdl WSY_bulkdldt w90px" style="display:none">
                            <dt style="width:120px">视频链接：</dt>
                            <dd><input type="text" style="width:200px" id="product_vedio" name="product_vedio" value='' placeholder='请输入链接'></dd> 
                            <dd style="color:red">（请填写通用代码，如腾讯视频->分享->复制相关代码）</dd>
                        </dl>
                        <dl class="WSY_bulkdl w90px">

                            <dt class="editor edit1 selected" style="background-color:white;" id="edit1" data-name='description' onclick="selectText(this, 1)">详细介绍</dt>
                            <dt class="editor edit2" id="edit2" data-name='specifications' onclick="selectText(this, 2)">产品规格</dt>
                            <dt class="editor edit3" id="edit3" data-name='service' onclick="selectText(this, 3)">售后保障</dt>

                            <div class="text_box input description" style="display:block;border:1px solid red;">
                                <script id="container1" name="content" type="text/plain" >
                                    这里写你的初始化内容1
                                </script>											
                            </div>
                            <div class="text_box input specifications" style="display:none;border:1px solid red;">
                                <script id="container2" name="content" type="text/plain" >
                                    这里写你的初始化内容2
                                </script>											
                            </div>
                            <div class="text_box input service" style="display:none;border:1px solid red;">
                                <script id="container3" name="content" type="text/plain" >
                                    这里写你的初始化内容3
                                </script>	                                       											
                            </div>
                        </dl>
                        <div style="height:600px;"></div> 
                        <div class="WSY_text_input01">
                            <div class="WSY_text_input"><button class="WSY_button" id="btnSave" type="submit">提交保存</button></div>
                            <div class="WSY_text_input"><button class="WSY_button" onclick="javascript:history.go(-1);" type="button">返回</button></div>
                        </div>
                    </div>
                    <div class="prompt">
                        <div class="prompt_head">
                            复制到
                        </div>
                        <div class="prompt_cont">
                            <ul>
                            </ul>	
                        </div>
                        <div class="prompt_end">

                            <input type="button" class="do_prompt" value="确定" onclick="do_prompt();">
                            <input type="button" value="取消" onclick="hide_prompt();">
                        </div>
                    </div>

                    <div class="all_prompt" style="display:none;">
                        <div class="prompt_head">
                            全部设置
                        </div>
                        <div class="prompt_cont" style="padding:20px 0;">
                            把相关属性复制到产品中，是否复制
                        </div>
                        <div class="prompt_end">
                            <input type="submit" class="do_prompt" value="确定">
                            <input type="button" value="取消" onclick="hide_prompt();">
                        </div>
                    </div>
                </form>
            </div>
    </div>
</body>
</html>